package junit.test;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.beanutils.locale.converters.DateLocaleConverter;

public class Demo {
	
	public static void main(String[] args) throws ParseException {
		
		String d = "1999-09-09";
		
		/*SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd");
		Date date = df.parse(d);
		System.out.println(date);*/
		
		DateLocaleConverter dlc = new DateLocaleConverter();
		dlc.convert(d,"yyyy-mm-dd");
		
	}

}
